# -*- coding: utf-8 -*-
import pymysql
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.proxy import Proxy,ProxyType
# from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import os
logpath = os.path.abspath(os.path.dirname(__file__)+"/../Log/")

conn= pymysql.connect(
        host='192.168.1.100',
        port = 3306,
        user='elincredit',
        passwd='123456',
        db ='crawler',
        charset='utf8',
        )
pythoncmd = "D:/Python34/python3"
python2cmd = "D:/Python27/python2"
# driver = webdriver.Firefox()
driver = webdriver.PhantomJS(executable_path='D:/phantomjs198/phantomjs.exe')